/**
 * Created by IntelliJ IDEA.
 * User: caporegim
 * Date: 08.08.12
 * Time: 21:14
 * To change this template use File | Settings | File Templates.
 */
public class HelloWorld {     
    private  static final Object lock = new Object();
    public static void main(String[] args) {
        Fibonachi fibonachi = new LockFreeFibonachiGenerator2();
        int i = 0;
        while(i++ < 10) {
            synchronized (lock){
                Generator g = new Generator(fibonachi);
                g.start();
            }
        }
    }
}
